package com.siashan.unipay4j.biz;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 支付业务自动配置类
 *
 * @author siashan
 * @date 2023/6/16
 **/
@Configuration
@EnableConfigurationProperties(PayBizProperties.class)
public class PayBizConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public PayBizProperties payBizProperties() {
        return new PayBizProperties();
    }
}
